package com.prs.crm.domain.crm;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * 采购货物
 * @author admin
 *
 */
@Entity
@Table(name="crm_supplierfoods")
public class SupplierFoods extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	@Id@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	private String foodName; //物品名称
	private String proName;   //项目名称
	private String modelstyle; //规格型号
	private Double price;   //单价
	private Integer nums;   //数量
	private String allprice;  //总价格
	private Date foodday;  //采购时间
	private String foodperson;  //采购人员
	@ManyToOne
	private CustomerSupplier customerSupplier;  //关联供应商
	@ManyToOne
	private CustomerContract customerContract;  //关联合同
	private String sharePerson;  //共享人员
	private String person;  //采购人员
	
	public String getSharePerson() {
		return sharePerson;
	}
	public void setSharePerson(String sharePerson) {
		this.sharePerson = sharePerson;
	}
	public String getPerson() {
		return person;
	}
	public void setPerson(String person) {
		this.person = person;
	}
	public CustomerContract getCustomerContract() {
		return customerContract;
	}
	public void setCustomerContract(CustomerContract customerContract) {
		this.customerContract = customerContract;
	}
	public CustomerSupplier getCustomerSupplier() {
		return customerSupplier;
	}
	public void setCustomerSupplier(CustomerSupplier customerSupplier) {
		this.customerSupplier = customerSupplier;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getProName() {
		return proName;
	}
	public void setProName(String proName) {
		this.proName = proName;
	}
	public String getModelstyle() {
		return modelstyle;
	}
	public void setModelstyle(String modelstyle) {
		this.modelstyle = modelstyle;
	}
	public Integer getNums() {
		return nums;
	}
	public void setNums(Integer nums) {
		this.nums = nums;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public String getAllprice() {
		return allprice;
	}
	public void setAllprice(String allprice) {
		this.allprice = allprice;
	}
	public Date getFoodday() {
		return foodday;
	}
	public void setFoodday(Date foodday) {
		this.foodday = foodday;
	}
	public String getFoodperson() {
		return foodperson;
	}
	public void setFoodperson(String foodperson) {
		this.foodperson = foodperson;
	}
	
	
}
